package com.itheima.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_sys_log" )
public class SysLog  implements Serializable {

	private static final long serialVersionUID =  74213589380225918L;

	/**
	 * 唯一uid
	 */
   	@Column(name = "uid" )
	@Id
	private String uid;

	/**
	 * 用户名
	 */
   	@Column(name = "user_name" )
	private String userName;

	/**
	 * 管理员uid
	 */
   	@Column(name = "admin_uid" )
	private String adminUid;

	/**
	 * 请求ip地址
	 */
   	@Column(name = "ip" )
	private String ip;

	/**
	 * 请求url
	 */
   	@Column(name = "url" )
	private String url;

	/**
	 * 请求方式
	 */
   	@Column(name = "type" )
	private String type;

	/**
	 * 请求类路径
	 */
   	@Column(name = "class_path" )
	private String classPath;

	/**
	 * 请求方法名
	 */
   	@Column(name = "method" )
	private String method;

	/**
	 * 请求参数
	 */
   	@Column(name = "params" )
	private String params;

	/**
	 * 描述
	 */
   	@Column(name = "operation" )
	private String operation;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * ip来源
	 */
   	@Column(name = "ip_source" )
	private String ipSource;

	/**
	 * 方法请求花费的时间
	 */
   	@Column(name = "spend_time" )
	private Long spendTime;

}
